package com.fac.constant;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * 设备状态枚举
 */
public enum EquipmentStatus implements IEnum<Integer> {
    IDLE(0, "闲置"),
    IN_USE(1, "使用中"),
    REPAIRING(2, "维修中"),
    SCRAPPED(3, "报废");

    private final Integer code;
    private final String value;

    EquipmentStatus(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }

    public String getDesc() {
        return this.value;
    }
} 